﻿Imports System.ComponentModel

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class ucExamCenterDetails
    Inherits UcBaseEditControl
    Implements IUcEditControl

#Region "Designer"
    'UserControl overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()
        
        ' Add any initialization after the InitializeComponent() call.
        
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.CenterCodelbl = New System.Windows.Forms.Label()
        Me.CenterCode = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.CenterNamelbl = New System.Windows.Forms.Label()
        Me.CenterName = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address1lbl = New System.Windows.Forms.Label()
        Me.Address1 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address2lbl = New System.Windows.Forms.Label()
        Me.Address2 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.Address3lbl = New System.Windows.Forms.Label()
        Me.Address3 = New org.codegen.win.controls.CGTextBox(Me.components)
        Me.CountryIdlbl = New System.Windows.Forms.Label()
        Me.CountryId = New org.codegen.win.controls.CGComboBox(Me.components)
        
        
        Me.SuspendLayout()
        '
        'CenterCodelbl
        '
        Me.CenterCodelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CenterCodelbl.Location = New System.Drawing.Point(5, 15)
        Me.CenterCodelbl.Name = "CenterCodelbl"
        Me.CenterCodelbl.Size = New System.Drawing.Size(120, 20)
        Me.CenterCodelbl.TabIndex = 0
        Me.CenterCodelbl.Text = "Center Code"
        Me.CenterCodelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'CenterCode
        '
        Me.CenterCode.AssociatedLabel = Me.CenterCodelbl
        Me.CenterCode.BackColor = System.Drawing.Color.LightYellow
        Me.CenterCode.ErrProvider = Nothing
        Me.CenterCode.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CenterCode.FormatPattern = Nothing
        Me.CenterCode.isMandatory = True
        Me.CenterCode.Location = New System.Drawing.Point(135, 15)
        Me.CenterCode.MaxLength = 255
        Me.CenterCode.MaxValue = Nothing
        Me.CenterCode.MinValue = Nothing
        Me.CenterCode.Name = "CenterCode"
        Me.CenterCode.Size = New System.Drawing.Size(200, 21)
        Me.CenterCode.TabIndex = 0
        '
        'CenterNamelbl
        '
        Me.CenterNamelbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CenterNamelbl.Location = New System.Drawing.Point(5, 45)
        Me.CenterNamelbl.Name = "CenterNamelbl"
        Me.CenterNamelbl.Size = New System.Drawing.Size(120, 20)
        Me.CenterNamelbl.TabIndex = 1
        Me.CenterNamelbl.Text = "Center Name"
        Me.CenterNamelbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'CenterName
        '
        Me.CenterName.AssociatedLabel = Me.CenterNamelbl
        Me.CenterName.BackColor = System.Drawing.Color.LightYellow
        Me.CenterName.ErrProvider = Nothing
        Me.CenterName.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CenterName.FormatPattern = Nothing
        Me.CenterName.isMandatory = True
        Me.CenterName.Location = New System.Drawing.Point(135, 45)
        Me.CenterName.MaxLength = 255
        Me.CenterName.MaxValue = Nothing
        Me.CenterName.MinValue = Nothing
        Me.CenterName.Name = "CenterName"
        Me.CenterName.Size = New System.Drawing.Size(200, 21)
        Me.CenterName.TabIndex = 1
        '
        'Address1lbl
        '
        Me.Address1lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address1lbl.Location = New System.Drawing.Point(5, 75)
        Me.Address1lbl.Name = "Address1lbl"
        Me.Address1lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address1lbl.TabIndex = 2
        Me.Address1lbl.Text = "Address1"
        Me.Address1lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address1
        '
        Me.Address1.AssociatedLabel = Me.Address1lbl
        Me.Address1.ErrProvider = Nothing
        Me.Address1.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address1.FormatPattern = Nothing
        Me.Address1.isMandatory = False
        Me.Address1.Location = New System.Drawing.Point(135, 75)
        Me.Address1.MaxLength = 255
        Me.Address1.MaxValue = Nothing
        Me.Address1.MinValue = Nothing
        Me.Address1.Name = "Address1"
        Me.Address1.Size = New System.Drawing.Size(200, 21)
        Me.Address1.TabIndex = 2
        '
        'Address2lbl
        '
        Me.Address2lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address2lbl.Location = New System.Drawing.Point(5, 105)
        Me.Address2lbl.Name = "Address2lbl"
        Me.Address2lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address2lbl.TabIndex = 3
        Me.Address2lbl.Text = "Address2"
        Me.Address2lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address2
        '
        Me.Address2.AssociatedLabel = Me.Address2lbl
        Me.Address2.ErrProvider = Nothing
        Me.Address2.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address2.FormatPattern = Nothing
        Me.Address2.isMandatory = False
        Me.Address2.Location = New System.Drawing.Point(135, 105)
        Me.Address2.MaxLength = 255
        Me.Address2.MaxValue = Nothing
        Me.Address2.MinValue = Nothing
        Me.Address2.Name = "Address2"
        Me.Address2.Size = New System.Drawing.Size(200, 21)
        Me.Address2.TabIndex = 3
        '
        'Address3lbl
        '
        Me.Address3lbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address3lbl.Location = New System.Drawing.Point(5, 135)
        Me.Address3lbl.Name = "Address3lbl"
        Me.Address3lbl.Size = New System.Drawing.Size(120, 20)
        Me.Address3lbl.TabIndex = 4
        Me.Address3lbl.Text = "Address3"
        Me.Address3lbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'Address3
        '
        Me.Address3.AssociatedLabel = Me.Address3lbl
        Me.Address3.ErrProvider = Nothing
        Me.Address3.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Address3.FormatPattern = Nothing
        Me.Address3.isMandatory = False
        Me.Address3.Location = New System.Drawing.Point(135, 135)
        Me.Address3.MaxLength = 255
        Me.Address3.MaxValue = Nothing
        Me.Address3.MinValue = Nothing
        Me.Address3.Name = "Address3"
        Me.Address3.Size = New System.Drawing.Size(200, 21)
        Me.Address3.TabIndex = 4
        '
        'CountryIdlbl
        '
        Me.CountryIdlbl.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CountryIdlbl.Location = New System.Drawing.Point(5, 165)
        Me.CountryIdlbl.Name = "CountryIdlbl"
        Me.CountryIdlbl.Size = New System.Drawing.Size(120, 20)
        Me.CountryIdlbl.TabIndex = 5
        Me.CountryIdlbl.Text = "Country"
        Me.CountryIdlbl.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'CountryId
        '
        Me.CountryId.AssociatedLabel = Me.CountryIdlbl
        Me.CountryId.ErrProvider = Nothing
        Me.CountryId.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CountryId.isMandatory = False
        Me.CountryId.Location = New System.Drawing.Point(135, 165)
        Me.CountryId.MaxLength = 255
        Me.CountryId.MaxValue = Nothing
        Me.CountryId.MinValue = Nothing
        Me.CountryId.Name = "CountryId"
        Me.CountryId.Size = New System.Drawing.Size(200, 21)
        Me.CountryId.TabIndex = 5
        '
        
        '
        
        '
        'ucExamCenterDetails
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange
        Me.Controls.Add(Me.CenterCodelbl)
        Me.Controls.Add(Me.CenterCode)
        Me.Controls.Add(Me.CenterNamelbl)
        Me.Controls.Add(Me.CenterName)
        Me.Controls.Add(Me.Address1lbl)
        Me.Controls.Add(Me.Address1)
        Me.Controls.Add(Me.Address2lbl)
        Me.Controls.Add(Me.Address2)
        Me.Controls.Add(Me.Address3lbl)
        Me.Controls.Add(Me.Address3)
        Me.Controls.Add(Me.CountryIdlbl)
        Me.Controls.Add(Me.CountryId)
        Me.Name = "ucExamCenterDetails"
        Me.Size = New System.Drawing.Size(833, 345)
        
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

	
	
	Friend WithEvents CenterCodelbl As System.Windows.Forms.Label
	Friend WithEvents CenterCode As CGTextBox
	Friend WithEvents CenterNamelbl As System.Windows.Forms.Label
	Friend WithEvents CenterName As CGTextBox
	Friend WithEvents Address1lbl As System.Windows.Forms.Label
	Friend WithEvents Address1 As CGTextBox
	Friend WithEvents Address2lbl As System.Windows.Forms.Label
	Friend WithEvents Address2 As CGTextBox
	Friend WithEvents Address3lbl As System.Windows.Forms.Label
	Friend WithEvents Address3 As CGTextBox
	Friend WithEvents CountryIdlbl As System.Windows.Forms.Label
	Friend WithEvents CountryId As CGComboBox


#End Region

#Region "Properties"
	
#End Region

#Region "Methods"
    
	''' <summary>
	''' Fills the controls on the screen from data in the object
	''' </summary>
	''' <remarks></remarks>
    Public Sub _loadData() Handles Me.evLoadObjectData


        Dim mo As ExamCenter = DirectCast(Me.ModelObject(), ExamCenter)
        	Me.CenterCode.value = mo.CenterCode
	Me.CenterName.value = mo.CenterName
	Me.Address1.value = mo.Address1
	Me.Address2.value = mo.Address2
	Me.Address3.value = mo.Address3
	Me.CountryId.value = mo.CountryId


		
		

    End Sub

	

    ''' <summary>
    ''' Loads the object from the database and then sets the proeperties 
    ''' of the object from values on the controls
    ''' </summary>
    ''' <remarks></remarks>
    Public Sub _loadToObject() Handles Me.evLoadToObject

        Dim mo As ExamCenter = DirectCast(me.ModelObject, ExamCenter)
        	mo.setCenterCode(Me.CenterCode.text)
	mo.setCenterName(Me.CenterName.text)
	mo.setAddress1(Me.Address1.text)
	mo.setAddress2(Me.Address2.text)
	mo.setAddress3(Me.Address3.text)
	mo.CountryId= Me.CountryId.IntValue


    End Sub

   

	Public Sub _InitializeControl() Handles Me.InitializeControl

		If Me.isInitialized = False Then
			'setup datasources here

			
			Me.CountryId.DataSource = New BusObjects.Mappers.CountryDBMapper().findAll()
			Me.CountryId.DisplayMember = "CountryName"
			Me.CountryId.ValueMember = "CountryId"
			

			Me.isInitialized = True
		End If

	End Sub

#End Region


End Class


